﻿namespace _3_NovaAdmin.Domain.ValueObjects;

/// <summary>
/// 新增的值对象
/// </summary>
public class CreationAuditInfo<Tkey> : _3_NovaAdmin.Domain.Abstractions.ValueObject
{
    public Tkey CreateOpId { get; set; }

    public string CreateOpName { get; set; }

    public DateTime CreateOpDate { get; set; }

    public CreationAuditInfo(Tkey CreateOpId, string CreateOpName, DateTime CreateOpDate)
    {
        this.CreateOpId = CreateOpId;
        this.CreateOpName = CreateOpName;
        this.CreateOpDate = CreateOpDate;
    }

    protected override IEnumerable<object> GetAtomicValues()
    {
        yield return CreateOpId;
        yield return CreateOpName;
        yield return CreateOpDate;
    }
}
